<?
session_start();
include 'user.php';
include 'talk.php';
$user_a = new User;
$user_b = new User;
$user->init_for_db($_SESSION['id']);
$user_a->del();
//删除talk_table中的内容
$talker = new Talker;
$b_id = $talker->get_other_session_id($user_a->get_session_id());
$user_b->init_for_db($b_id);

$talker->init($user_a->get_session_id(),$user_b->get_session_id());
$talker->del();

$user_b->set_status(1);
?>